package com.touchealth.test.collection;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zhangyanqiang
 * @date 2020/5/25
 **/
public class ArrayDemo {

    public static void main(String[] args) {

        List<String> list = new ArrayList<>();

        list.add("zhang");
        list.add("li");
        list.forEach(l ->{
            if(l.length()>3){
                return;
            }
            System.out.println(l);
        });
    }
}
